| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* global kirkiWebfonts, WebFont */ |
||
| 15 | jQuery( document ).ready( function() { |
||
| 16 | let script = document.querySelector( '#webfontloader' ); |
||
| 17 | |||
| 18 | // Check when the webfontloader finishes loading. |
||
| 19 | script.addEventListener( 'load', function() { |
||
| 20 | |||
| 21 | // Loop fonts. |
||
| 22 | _.each( kirkiWebfonts, function( weights, family ) { |
||
| 23 | |||
| 24 | // Add font. |
||
| 25 | WebFont.load( { |
||
| 26 | google:{ |
||
| 27 | families: [ family + ':' + weights.join( ',' ) + 'cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai' ] |
||
| 28 | } |
||
| 29 | } ); |
||
| 30 | } ); |
||
| 31 | } ); |
||
| 32 | } ); |
||
| 33 |